package com.bailv.macro;

import java.util.HashMap;
import java.util.Map;


public class SensorNameMacro {

	public enum SensorName {
		OUTDOORHUMIDITY, INDOORHUMIDITY, LIGHT, OUTDOORTEMPERATURE, INDOORTEMPERATURE, INFRARED, SWITCH1, 
		SWITCH2, SWITCH3, SMOKE, RAIN, ILLUMINATION, PM2_5, AIRPOWER,WINDOW,CURTAIN,DOOR
	}

	private final static Map<SensorName, String> sensorFlag = new HashMap<SensorName, String>() {
		{
			put(SensorName.INDOORHUMIDITY, "in_humidity");
			put(SensorName.OUTDOORHUMIDITY, "out_humidity");
			put(SensorName.ILLUMINATION, "illumination");
			put(SensorName.INDOORTEMPERATURE, "in_temperature");
			put(SensorName.OUTDOORTEMPERATURE, "out_temperature");
			put(SensorName.INFRARED, "infrared");
			put(SensorName.SWITCH1, "switch1");
			put(SensorName.SWITCH2, "switch2");
			put(SensorName.SWITCH3, "switch3");
			put(SensorName.SMOKE, "smoke");
			put(SensorName.RAIN, "rain");
			put(SensorName.LIGHT, "light");
			put(SensorName.PM2_5, "pm");
		}
	};
	
	public static String getSensorFlag(SensorName sensorName) {
		return sensorFlag.get(sensorName);
	}
}
